package com.zm.demo.shadingsphere;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zoum
 * @create 2019/12/20 10:29
 */

@ComponentScan(basePackages = {"com.zm.demo.shadingsphere"})
@MapperScan({"com.zm.demo.shadingsphere"})
@EnableAutoConfiguration
@RestController
public class Application {

    public static void main(String[] args){
        SpringApplication.run(Application.class, args);
    }

    @RequestMapping("/")
    public String health(){
        return "success";
    }
}
